#
# perc2 - calculation of the fractal dimension of correlated
# bond percolation cluster hulls
#
# Copyright (C) 2009, 2010 Indrek Mandre <indrek(at)mare.ee>
# http://www.mare.ee/indrek/perc2/, http://code.google.com/p/perc2/
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# 

set terminal postscript eps
set output 'results.eps'

set logscale x

#set ytics add ('7/4' 7.0/4.0)
#set ytics add ('4/3' 4.0/3.0)
#set yrange [1.25:1.6]

set grid ytics

plot \
  'results.csv' using 1:2:3 with errorlines pt 5 ps 0.35 title 'hull', \
  'results.csv' using 1:4 with linespoints pt 5 ps 0.35 title 'bonds', \
  'results.csv' using 1:6 with linespoints pt 5 ps 0.35 title 'ends', \
  'results.csv' using 1:8 with linespoints pt 5 ps 0.35 title 'lines', \
  'results.csv' using 1:10 with linespoints pt 5 ps 0.35 title 'sides', \
  'results.csv' using 1:12 with linespoints pt 5 ps 0.35 title 'fjords', \
  'results.csv' using 1:14 with linespoints pt 5 ps 0.35 title 'corners'

